@foreach(['success', 'danger'] as $message)
    @if(Session::has($message))
        <div class="alert alert-{{ $message }}">
            {{ Session::pull($message) }}
        </div>
    @endif
@endforeach